package com.songcan.common.exception;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.songcan.common.contans.CoreContants;
import com.songcan.common.serializer.Auth2ExceptionSerializer;

@JsonSerialize(using = Auth2ExceptionSerializer.class)
public class MethodNotAllowed extends AuthException {

    public MethodNotAllowed(String msg, Throwable t) {
        super(msg);
    }
    public MethodNotAllowed(String msg) {
        super(msg);
    }

    @Override
    public String getMessage() {
        return super.getMessage();
    }

    @Override
    public String getCode() {
        return CoreContants.UNKNOWN;
    }
}
